#include "AI.h"

extern map<string, ExceptionInfo> exception_map;
extern map<string, ExceptionInfo>::iterator exception_it;

bool ExceptionTag(char* word, char* pos, char* type)
{
	exception_it = exception_map.find(word);

	if(exception_it != exception_map.end())
	{
		strcpy_s(pos, POS_LENGTH, exception_it->second.pos.c_str());
		strcpy_s(type, TYPE_LENGTH, exception_it->second.type.c_str());
		return true;
	}

	return false;
}